package com.cx.service.impl;

import com.cx.mapper.ImgdetailsMapper;
import com.cx.pojo.Imgdetails;
import com.cx.service.ImgDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ImgDetailsServiceImpl implements ImgDetailsService {

    @Autowired
    ImgdetailsMapper imgdetailsMapper;

    @Override
    public int insert(Imgdetails imgdetails) {
        return imgdetailsMapper.insert(imgdetails);
    }

    @Override
    public int updateByPrimaryKey(Imgdetails imgdetails) {
        return imgdetailsMapper.updateByPrimaryKey(imgdetails);
    }

    @Override
    public int deleteByPrimaryKey(Integer imgId) {
        return imgdetailsMapper.deleteByPrimaryKey(imgId);
    }

    @Override
    public Imgdetails selectByPrimaryKey(Integer imgId) {
        return imgdetailsMapper.selectByPrimaryKey(imgId);
    }
}
